import { Router } from 'express';
import * as controller from './controller';
import { verifyToken } from '../../middleware/auth';

const router = Router();


// 需要认证的路由
router.post('/', verifyToken, controller.createAdminUser);
router.get('/list', verifyToken, controller.getAdminUsers);
router.put('/avatar', verifyToken, controller.updateAvatar);      // 用户更新自己的头像
router.get('/:id', verifyToken, controller.getAdminUserById);
router.put('/:id', verifyToken, controller.updateAdminUser);
router.delete('/:id', verifyToken, controller.deleteAdminUser);
// 头像相关路由

export default router; 